First explain the environmentCocos2d-x v3.2Why use this version because I was not at the client's decision-making point when the project started, because I was engaged in the server, so I can only continue to follow this version, at least this
Recently in the study of how to embed Lua in Windows to complete the business module authoring some problems, first Lua as a scripting language, its flexibility and scalability is very high, otherwise cocos2d-x will not embed him to write business
The last time I wrote a mark for the DLL called by Lua, I wrote a small program to try it out. This is because a task is to take data from the sqlite3 database and parse the data into groups. At that time, the simplest idea was to operate the sqlite3
How to Use SQLite in Lua Program
This article describes how to use SQLite in The Lua program, including creating connections to basic queries and other operations. For more information, see
SQLite Import
We can use a simple statement to import the
This article mainly introduces the use of SQLite in LUA programs, including the establishment of a connection to the basic query and other operations, the need for friends can refer to the
SQLite Import
We can import the SQLite library with a
SQLite Import
We can import the SQLite library with a simple statement, assuming that LUA is properly implemented and completed. During the installation process, the folder Libsql contains database-related files.
Copy Code code as follows:
1> f:\cocos2d-x\cocos2d-x\external\lua\lua\lua.h (99): See Declaration of "Lua_number"1>F:\COCOS2D-X\COCOS2D-X\EXTERNAL\SQLITE3-EXT\LSQLITE3.C (1272): Error C2146: syntax error: Missing ";" (in front of the identifier
Some things, very simple, but there is a hole, it becomes complicated. Let me first say the simplest way, create a new empty TXT document, and then change the suffix to db. -_-egg pain, in fact, I do not know at the beginning, but also after the
Document directory
Structure
Member
Structure
Member
Structure
Member
The luasql module supports sqlite3 and can complete the most basic database functions. However, the official documentation is not very detailed. I scanned the source
1. Introduction The package can install and update LUA's third-party modules. 2. Please select the desired package on the http://luarocks.org/releases/page. wget http://luarocks.org/releases/luarocks-2.1.0.tar.gz 3. Installation TAR-ZXVF luarocks-2
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.